package com.anan;

/**
 * @Author: Painter
 * @project_name: aircraft-war
 * @system_login: sunshine
 * @time: 2023/11/520:12
 */

import java.awt.*;


public class Background {
    private int x;  // 图片的x坐标
    private int y;  // 图片的y坐标

    private Image image = Imagevalue.background;  // 背景图片

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public Image getImage() {
        return image;
    }



    public Background(int x,int y) {
        this.x = x;
        this.y = y;
    }
    public void move(){  // 移动
        this.y += 2;

    }
}
